<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>最强僚机之验证码</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	<script type="text/javascript">
	
	function reloadImage(){
		document.getElementById("btn").disabled=true;
		document.getElementById("indentity").src="/sun/ramdonImg.action?ts="+new Date().getTime();
	}
	
	</script>

  </head>
  
  <body>
    <div align="center">
    <img   alt="验证码 " src="/sun/ramdonImg.action" id="indentity" onload="btn.disabled=false; "/>
        <%=request.getSession(true).getAttribute("randomString")%>
    <br>
    <input  type="button" value="换个图片" id="btn" onclick="reloadImage()">
    </div>
    
  </body>
</html>
